<?php
/**
* phpCan - http://idc.anavallasuiza.com/
*
* phpCan is released under the GNU Affero GPL version 3
*
* More information at license.txt
*/

defined('ANS') or die();

echo $Form->textarea(array(
	'variable' => $info['varname'].'[0]',
	'value' => $info['data'][''],
	'id' => $info['id_field'],
	'class' => 'html f100',
	'error' => $info['error']['']
));

echo $Html->jsLink('common|ckeditor-3.5.3/ckeditor.js');
echo $Html->jsLink('common|ckeditor-3.5.3/adapters/jquery.js');
?>

<script type="text/javascript">
	$(document).ready(function () {
		$('textarea.html').ckeditor({
			forcePasteAsPlainText: true,
			toolbar: [
				['Source','-','Undo','Redo','-','Link','Unlink','-','Bold','Italic','Strike','Subscript','Superscript','RemoveFormat'],
				['Format','NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
				['Image','Table','SpecialChar'],
				['Find','Replace'],
				['ShowBlocks','Maximize']
			],
			toolbarCanCollapse: false
		});
	});
</script>
